package a07_responsibilityChainPattern;

public class TeamLeader extends BugHandler {

	@Override
	void handle(int bugLevel) {
		if (bugLevel > 10 && bugLevel <= 20) {
			System.out.println("TeamLeader's responsibility!");

		} else {
			if (this.getSuccessor() != null) {
				this.getSuccessor().handle(bugLevel);
			}
		}

	}

}
